import request from '@/utils/request';

const api = '/api/hbl';


export async function getByMBLNo(mblNo) {
  const urlString = `${api}/GetByMBLNO?mblNo=${mblNo}`;
  return request(urlString);
}

export async function create(params) {
  return request(`${api}`, {
    method: 'POST',
    body: params,
  });
}

export async function addNew(params) {
  return request(`${api}/addNew`, {
    method: 'POST',
    body: params,
  });
}

export async function update(params) {
  return request(`${api}/Update`, {
    method: 'POST',
    body: params,
  });
}

export async function remove(id) {
  return request(`${api}/${id}`, {
    method: 'DELETE',
  });
}
